package com.trust.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.trust.entity.DTO.FarmSeedDTO;
import com.trust.entity.FarmSeed;
import com.trust.entity.Param.FarmSeedListParam;
import com.trust.entity.VO.FarmSeedListVO;
import com.trust.entity.VO.FarmSeedVO;
import com.trust.entity.VO.PlantDropDown;
import com.trust.entity.result.DropDownResult;

import java.util.List;

public interface FarmSeedService extends IService<FarmSeed> {


    /**
     * 列表
     * @param param
     * @return
     */
    Page<FarmSeedListVO> list(FarmSeedListParam param);

    /**
     * 新增 更新 育苗
     * @param param
     */
    FarmSeed saveAndUpdate(FarmSeedDTO param);


    /**
     * 种源下拉框
     * @param medicineId
     * @return
     */
    List<DropDownResult> breed(Integer medicineId);


    /**
     * 详情
     * @param id
     * @return
     */
    FarmSeedVO info(Integer id);

    /**
     * 下拉框
     * @return
     */
    List<DropDownResult> dropDown();

    /**
     * 下拉框
     * @return
     */
    List<PlantDropDown> dropDownList();

    /**
     * 获取种植品类名称
     * @param id
     * @return
     */
    String getCateNameById(Integer id);
}
